package com.liehu.business.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.liehu.business.pojo.LeaveMessage;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface LeavemessageMapper extends BaseMapper<LeaveMessage> {
    //审核留言-仅限管理员操作-leaveMessageId为留言id,status为留言状态
    @Update("UPDATE tb_leavemessage SET STATUS=#{status} WHERE id=#{leaveMessageId}")
    public  void updateStatus(String leaveMessageId, String status);
}
